/* 网站地图页面样式 */

/* 标题样式 */
.sitemap-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

/* 快速导航 */
.sitemap-nav {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--primary-weak);
}

.sitemap-nav-link {
  margin-right: 16px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.sitemap-nav-link:hover {
  color: var(--primary) !important;
  text-decoration: underline !important;
}

/* 区块标题 */
.sitemap-section {
  margin-bottom: 32px;
  overflow: hidden;
  width: 100%;
}

.sitemap-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--ink);
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}

/* 列表容器 */
.sitemap-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sitemap-tag {
  display: inline-block;
  padding: 8px 16px;
  background: var(--primary-weak);
  color: var(--primary);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 14px;
}

.sitemap-tag:hover {
  background: #d4f0e4 !important;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(44, 163, 106, 0.15);
}

/* 标签列表中的标签样式（稍小） */
.sitemap-list-tags .sitemap-tag {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  gap: 8px;
}

/* 文章列表网格布局 */
.sitemap-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.sitemap-post-item {
  padding: 12px;
  border: 1px solid #e6eee6;
  border-radius: 8px;
  background: #fff;
  transition: all 0.2s;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.sitemap-post-item:hover {
  background: var(--primary-weak);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(44, 163, 106, 0.15);
}

.sitemap-post-link {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.5;
  box-sizing: border-box;
}

.sitemap-post-link:hover {
  color: var(--primary);
}

/* 空状态提示 */
.sitemap-empty {
  width: 100%;
  text-align: center;
  padding: 20px;
}

.sitemap-posts-empty {
  text-align: center;
  padding: 20px;
  grid-column: 1 / -1;
}

/* 返回顶部按钮 */
.sitemap-back-top {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e6eee6;
}

.sitemap-back-top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--primary-weak);
  color: var(--primary);
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.sitemap-back-top-link:hover {
  background: #d4f0e4;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(44, 163, 106, 0.15);
}

/* 响应式设计 */
/* 平板端两列布局 */
@media (max-width: 991.98px) {
  .sitemap-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* 移动端单列布局 */
@media (max-width: 575.98px) {
  .sitemap-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .sitemap-nav-link {
    margin-right: 0 !important;
  }
  
  .sitemap-posts-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

